package com.xzq.bizimpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xzq.biz.ONPBiz;
import com.xzq.dao.ONPDao;
import com.xzq.entity.OrderAndProduct;
@Service
public class ONPBizImpl implements ONPBiz {
	@Resource
	private ONPDao dao;
	@Override
	public OrderAndProduct findOneONP(OrderAndProduct onp) {
		onp = dao.findOneONP(onp);
		return onp;
	}

	@Override
	public int addONP(OrderAndProduct onp) {
		int count = dao.addONP(onp);
		return count;
	}

}
